import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path:'/',
    //   redirect:'login'
    // },
    {
      path:'/home',
      name:'home',
      component:()=>import('../views/Home.vue')
    },
    {
      path:'/product',
      name:'product',
      component:()=>import('../views/Prouduct.vue')
    },
    {
      path:'/user',
      name:'user',
      component:()=>import('../views/User.vue')
    },
    {
      path:'/login',
      name:'login',
      component:()=>import('../views/Login.vue')
    },
  ]
})

export default router
